package com.zhk.ScriptManagement.mapper;

import com.zhk.ScriptManagement.entity.User;
import com.zhk.ScriptManagement.entity.vo.UserVo;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * @author zhk
 * @description 用户mapper
 * @date 2021-02-19 10:03:30
 **/
@Mapper
@Component
public interface UserMapper {

    User getUserByUserName(@Param("username")String username);

    int insertUser(@Param("user") User user);

    int updateUser(@Param("user") User user);

    UserVo findUserByUserId(@Param("userId") Integer userId);

    List<UserVo> getUsers(@Param("realName") String realName);

}
